package com.tiancikeji.zaoke.gui.model.order;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.javagui.annotation.Resource;

@Resource(file="Order")
public class Order implements Serializable{
	
	private static final long serialVersionUID = -4624738410887666884L;

	public static final int STATE_UNPAID = 0;
	
	public static final int STATE_PAID = 1;
	
	public static final int STATE_TOKEN = 2;
	
	public static final int STATE_PAID_EXPIRE = 3;
	
	public static final int STATE_UNPAID_EXPIRE = 4;
	
	public static final int STATE_CANCEL = 5;
	
	private long orderId;
	
	private long userId;
	
	private String userName;
	
	private String userState;
	
	private long zoneId;
	
	private String zoneName;
	
	private double salePrice;
	
	private String priceMode;
	
	private String payWay;
	
	private String state;
	
	private String orderTime;
	
	private String bookTime;
	
	private String consumeTime;
	
	private String phone;
	
	private long cardId;
	
	private String uploadTime;
	
	private String downloadTime;
	
	private long mfoodid;
	
	private String mfoodName;
	
	private double mfoodPrice;
	
	private long sfoodid;
	
	private String sfoodName;
	
	private double sfoodPrice;
	
	public long getOrderId() {
		return orderId;
	}

	public void setOrderId(long orderId) {
		this.orderId = orderId;
	}
	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public long getZoneId() {
		return zoneId;
	}

	public void setZoneId(long zoneId) {
		this.zoneId = zoneId;
	}

	public double getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(double salePrice) {
		this.salePrice = salePrice;
	}

	public String getPayWay() {
		return payWay;
	}

	public void setPayWay(String payWay) {
		this.payWay = payWay;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}

	public String getBookTime() {
		return bookTime;
	}

	public void setBookTime(String bookTime) {
		this.bookTime = bookTime;
	}

	public String getConsumeTime() {
		return consumeTime;
	}

	public void setConsumeTime(String consumeTime) {
		this.consumeTime = consumeTime;
	}

	@Override
	public boolean equals(Object obj) {
		return EqualsBuilder.reflectionEquals(this, obj);
	}

	@Override
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public long getCardId() {
		return cardId;
	}

	public void setCardId(long cardId) {
		this.cardId = cardId;
	}

	public String getZoneName() {
		return zoneName;
	}

	public void setZoneName(String zoneName) {
		this.zoneName = zoneName;
	}

	public String getUploadTime() {
		return uploadTime;
	}

	public void setUploadTime(String uploadTime) {
		this.uploadTime = uploadTime;
	}

	public String getDownloadTime() {
		return downloadTime;
	}

	public void setDownloadTime(String downloadTime) {
		this.downloadTime = downloadTime;
	}

	public String getPriceMode() {
		return priceMode;
	}

	public void setPriceMode(String priceMode) {
		this.priceMode = priceMode;
	}

	public String getUserState() {
		return userState;
	}

	public void setUserState(String userState) {
		this.userState = userState;
	}

	public long getMfoodid() {
		return mfoodid;
	}

	public void setMfoodid(long mfoodid) {
		this.mfoodid = mfoodid;
	}

	public String getMfoodName() {
		return mfoodName;
	}

	public void setMfoodName(String mfoodName) {
		this.mfoodName = mfoodName;
	}

	public double getMfoodPrice() {
		return mfoodPrice;
	}

	public void setMfoodPrice(double mfoodPrice) {
		this.mfoodPrice = mfoodPrice;
	}

	public long getSfoodid() {
		return sfoodid;
	}

	public void setSfoodid(long sfoodid) {
		this.sfoodid = sfoodid;
	}

	public String getSfoodName() {
		return sfoodName;
	}

	public void setSfoodName(String sfoodName) {
		this.sfoodName = sfoodName;
	}

	public double getSfoodPrice() {
		return sfoodPrice;
	}

	public void setSfoodPrice(double sfoodPrice) {
		this.sfoodPrice = sfoodPrice;
	}
}
